package net.neptech.model.emum;

import lombok.Data;


public enum OrderStatus {
    PENDING(0, "待支付"),
    PAID(1, "已支付"),
    CANCELLED(2, "已取消"),
    COMPLETED(3, "已完成");
    private final int code;
    private final String description;

    OrderStatus(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public byte getCode() {
        return (byte) code;
    }

    public String getDescription() {
        return description;
    }
}
